package com.hdaccp.users.controller;

import com.hdaccp.bean.entity.Users;
import com.hdaccp.users.dao.UsersDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/users")
public class UsersController {

    @Resource
    private UsersDao usersDao ;
    @RequestMapping("/query")
    public List<Users> query(){
        return usersDao.query() ;
    }


    @RequestMapping("/query1")
    public String query1(){
        return "hello" ;
    }

}
